﻿using EntityModel;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace API.Controllers
{
    /// <summary>
    /// 走访记录控制器
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class InterviewController : ControllerBase
    {

        private readonly APIDbContext db;

        public InterviewController(APIDbContext context)
        {
            db = context;
        }

        [HttpGet]
        public List<Interview> GetAllInterview()
        {
            return db.interview.ToList();
        }


    }
}
